﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using eTerm.NetSocket.Base;

namespace eTerm.NetSocket
{
    /// <summary>
    /// 授权体
    /// </summary>
    [Serializable]
    public sealed class SetupBinary : BaseBinary<SetupBinary>
    {
        /// <summary>
        /// Gets or sets the name of the client.
        /// </summary>
        /// <value>The name of the client.</value>
        public string CompanyName { get; set; }

        /// <summary>
        /// Gets or sets the expire date.
        /// </summary>
        /// <value>The expire date.</value>
        public DateTime? ExpireDate { get; set; }

        /// <summary>
        /// Gets or sets the system code.
        /// </summary>
        /// <value>The system code.</value>
        public string SystemCode { get; set; }

        /// <summary>
        /// Gets or sets the max socket.
        /// </summary>
        /// <value>The max socket.</value>
        public int MaxSocket { get; set; }

        /// <summary>
        /// Gets or sets the max T session.
        /// </summary>
        /// <value>The max T session.</value>
        public int MaxTSession { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [allow API].
        /// </summary>
        /// <value><c>true</c> if [allow API]; otherwise, <c>false</c>.</value>
        public bool AllowAPI { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [allow eterm].
        /// </summary>
        /// <value><c>true</c> if [allow eterm]; otherwise, <c>false</c>.</value>
        public bool AllowEterm { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether 3[allow compress].
        /// </summary>
        /// <value><c>true</c> if [allow compress]; otherwise, <c>false</c>.</value>
        public bool AllowCompress { get; set; }

        /// <summary>
        /// Gets or sets the type of the binary.
        /// </summary>
        /// <value>The type of the binary.</value>
        public int BinaryType { get; set; }
    }
}
